package jvm;

/**
 * @author: cuihao
 * @create: 2020-06-21 02:57
 **/
public class FMain extends Mother {

    private static int fieldA = 1234;

    private volatile int fieldB = 4569;

    public static void main(String[] args) {

        int newfieldA = fieldA;
        System.out.println(newfieldA);

        Father father = new Father();
        father.methodA();
        father.methodB();
        father.methodC();

        Object lock = new Object();


        synchronized (lock) {
            System.out.println("567");
        }
    }

    public int methodA() {
        System.out.println("char");
        return 1;
    }
}
